<div class="yiiForm">

<p>
Fields with <span class="required">*</span> are required.
</p>

<?php echo CHtml::beginForm(); ?>

<?php echo CHtml::errorSummary($model); ?>

<div class="simple">
<?php echo CHtml::activeLabelEx($model,'page'); ?>
<?php echo $update ? CHtml::activeTextField($model,'page',array('readonly'=>true,'size'=>32,'maxlength'=>32)):CHtml::activeTextField($model,'page',array('size'=>32,'maxlength'=>32)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'position'); ?>
<?php echo $update ? CHtml::activeTextField($model,'position',array('readonly'=>true)):CHtml::activeTextField($model,'position'); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'title'); ?>
<?php echo CHtml::activeTextField($model,'title',array('size'=>60,'maxlength'=>128)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'alt'); ?>
<?php echo CHtml::activeTextField($model,'alt',array('size'=>60,'maxlength'=>128)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'url'); ?>
<?php echo CHtml::activeTextField($model,'url',array('size'=>60,'maxlength'=>256)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'pic_path'); ?>
<?php echo CHtml::activeTextField($model,'pic_path',array('size'=>60,'maxlength'=>256)); ?>
<?php echo CHtml::link('现在上传','index.php?r=fileUpload/create',array('target'=>'_blank')); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'text'); ?>
<?php echo CHtml::activeTextArea($model,'text',array('rows'=>6, 'cols'=>50)); ?>
</div>

<div class="action">
<?php echo CHtml::submitButton($update ? 'Save' : 'Create'); ?>
</div>

<?php echo CHtml::endForm(); ?>

</div><!-- yiiForm -->